﻿@using WebUI.Models
@model ContaModel

@using (Html.BeginForm("Index", "Conta", FormMethod.Post, new { @id = "form-conta" })) {
    @Html.ValidationSummary(true)
    @Html.TextBoxFor(m => m.NomeConta)
    @Html.ValidationMessageFor(m => m.NomeConta)

    <button id="button-enviar" class="enviar">Enviar</button>
}
<table>
    <tbody>
    @{Html.RenderPartial("Contas", (IList<ContaItemModel>)ViewBag.Contas);}
    </tbody>
</table>